gdkborder: add GdkBorder to gdktypes.h
authorWilliam Hua <william.hua@canonical.com>
Thu, 22 Oct 2015 03:36:50 +0000 (23:36 -0400)
committerWilliam Hua <william.hua@canonical.com>
Tue, 15 Dec 2015 15:13:03 +0000 (10:13 -0500)
docs/reference/gdk/gdk3-sections.txt
gdk/gdktypes.h
gtk/gtkborder.h

index 26d8062d20c053f191e7ecb80c0038aac7d3a936..7b1b9f7419c5478735ae2a114d85e746067348d8 100644 (file)
@@ -638,6 +638,9 @@ gdk_rectangle_intersect
 gdk_rectangle_union
 gdk_rectangle_equal
 
+<SUBSECTION>
+GdkBorder
+
 <SUBSECTION Private>
 gdk_rectangle_get_type
 </SECTION>
index 01366fd6b731df5a3f7c24d0e3967311933e81a3..17584b298948e6f46c177f7bf92a934b990508d1 100644 (file)
@@ -93,6 +93,26 @@ typedef struct _GdkRectangle          GdkRectangle;
 typedef cairo_rectangle_int_t         GdkRectangle;
 #endif
 
+typedef struct _GdkBorder GdkBorder;
+
+/**
+ * GdkBorder:
+ * @left: The width of the left border
+ * @right: The width of the right border
+ * @top: The width of the top border
+ * @bottom: The width of the bottom border
+ *
+ * A struct that specifies a border around a rectangular area
+ * that can be of different width on each side.
+ */
+struct _GdkBorder
+{
+  gint16 left;
+  gint16 right;
+  gint16 top;
+  gint16 bottom;
+};
+
 /**
  * GdkAtom:
  *
index adfa29e764acf4a7b0631f44bf31c3fb156d641b..6df53aac3eaa40b1bb3d68bb7f6afd84f5475bcd 100644 (file)
@@ -34,8 +34,6 @@
 
 G_BEGIN_DECLS
 
-typedef struct _GtkBorder GtkBorder;
-
 #define GTK_TYPE_BORDER (gtk_border_get_type ())
 
 /**
@@ -48,13 +46,7 @@ typedef struct _GtkBorder GtkBorder;
  * A struct that specifies a border around a rectangular area
  * that can be of different width on each side.
  */
-struct _GtkBorder
-{
-  gint16 left;
-  gint16 right;
-  gint16 top;
-  gint16 bottom;
-};
+typedef GdkBorder GtkBorder;
 
 GDK_AVAILABLE_IN_ALL
 GType      gtk_border_get_type (void) G_GNUC_CONST;